package org.example.base;

import java.util.*;

public class ArrayTest {
    public static void main(String[] args) {
        List<Integer> a = new ArrayList<>();
        a.add(1);
        System.out.println("a = " + a);

        LinkedList<Integer> b = new LinkedList<>();
        b.add(2);
        b.add(1);

//        b.remove(1);
        boolean remove = b.remove(new Integer(1));
        System.out.println("remove = " + remove);

        Comparable c;
        Comparator c2 = new Comparator() {
            @Override
            public int compare(Object o1, Object o2) {
                return 0;
            }
        }.thenComparing(new Comparator() {
            @Override
            public int compare(Object o1, Object o2) {
                return 0;
            }
        });


    }
}
